-
Notifications
You must be signed in to change notification settings - Fork 1
feat: static css styling inserted #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
this doesn't look quite right; please give me the weekend to review |
jbergstroem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blocking so it doesn't land as-is
|
I do agree with removing the height and width argument (but it shoudl be easy to retrieve) but my concern is with how opinionated this becomes. I would rather see custom css being passed as-is or just making it easy to target via a css rule so styling can fit into an existing css system. |
|
Keep in mind: removing width/height is semver breaking; we need to make sure we don't mess with existing installations. |
48e9031 to
15d8c2f
Compare
|
@jbergstroem I've reinterpreted this PR |
| width?: number, | ||
| height?: number, | ||
| bannerClass?: string, | ||
| ): TemplateResult { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't change the order of variables, thats a breaking change
| src="${src}" | ||
| width="${width}px" | ||
| height="${height}px" | ||
| styles=${mediaStyle} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im generally ok with this if there are no users of banners.js using video; it is the right move. the otehr option is to do a major bump due to your previous change
Lets the user customize the styling of the banner using the following css variables:
--ts-banner-width
--ts-banner-height
--ts-banner-padding
--ts-banner-margin
Also removes the width and height properties from the topsort-banner element.